import {
  AccountParams,
  DeptListItem,
  MenuParams,
  RoleParams,
  DistrictParams,
  RolePageParams,
  MenuListGetResultModel,
  DeptListGetResultModel,
  AccountListGetResultModel,
  RolePageListGetResultModel,
  RoleListGetResultModel,
  DistrictListGetResultModel,
  SamplingStatItem,
} from './model/systemModel';
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { useUserStore } from '/@/store/modules/user';
const globSetting = useGlobSetting();
import axios from 'axios';
import {
  HouseListGetResultModel,
} from './model/tableModel';


export const detailApkApi = () =>
  defHttp.get<any>({
    url: '/app-update/info',
  });

export const getHourseByTypelist = (params: any) =>
  defHttp.get({
    url: '/houses/evolvestatic/getHourseByTypeList',
    params: {
      ...params,
      pageIndex: params.pageIndex - 1,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
export const getsysstdlist = (params: any) =>
  defHttp.get({
    url: '/static/stat/sysstdlist',
    params: {
      ...params,
      pageIndex: params.pageIndex - 1,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
export const getzxxxtj = (params: any) =>
  defHttp.get({
    url: '/static/specialBaseStatic/list',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });

export const getgdjsbplist = (params: any) =>
  defHttp.get({
    url: '/static/xgjsbp/list',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
  //未悬挂固定警示标牌
export const getNoxgjsbplist = (params: any) =>
  defHttp.get({
    url: '/static/xgjsbp/getNoxgjsbplist',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });

//消防设施统计
export const getxfsslist = (params: any) =>
  defHttp.get({
    url: '/static/xfss/list',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//充电设施配比情况
export const getcdsspbqklist = (params: any) =>
  defHttp.get({
    url: '/static/cdsspbqk/list',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//统计现有基础数据
export const getbaseinfodetail = () =>
  defHttp.get({
    url: '/static/baseinfo/detail',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//统计房屋现有基础数据
export const gethourseInfodetail = () =>
  defHttp.get({
    url: '/static/hourseInfo/detail',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//拆除防护网情况
export const getccfhwqklist = () =>
  defHttp.get({
    url: '/static/ccfhwqk/list',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//统计满足两条疏散通道情况
export const getsstdbqklist = () =>
  defHttp.get({
    url: '/static/sstdbqk/list',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//统计自查和检查情况
export const getCheckhourseInfodetail = () =>
  defHttp.get({
    url: '/static/checkhourseInfo/detail',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//统计清理电动车情况
export const getddzxclist = () =>
  defHttp.get({
    url: '/static/ddzxc/list',
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
//充电方式
export const getcdfslist = (params: any) =>
  defHttp.get({
    url: '/static/cdfs/list',
    params: {
      ...params,
      pageIndex: params.pageIndex,
      limit: params.pageSize,
      orderBy: 0,
    },
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
